import request from '@/utils/request'

// 查询订单追踪列表
export function listOrderTrackByOrderId(orderId) {
  return request({
    url: '/order/orderTrack/listByOrderId/' + orderId,
    method: 'get',
  })
}


// 查询订单追踪详细
export function getOrderTrack(id) {
  return request({
    url: '/order/orderTrack/' + id,
    method: 'get'
  })
}

// 新增订单追踪
export function addOrderTrack(data) {
  return request({
    url: '/order/orderTrack',
    method: 'post',
    data: data
  })
}

// 删除订单追踪
export function delOrderTrack(id) {
  return request({
    url: '/order/orderTrack/' + id,
    method: 'delete'
  })
}
